<%--
  Created by IntelliJ IDEA.
  User: 17214
  Date: 2022/8/24
  Time: 9:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>会员详情</title>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/admin/car/fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/admin/car/css/style.css"/>
</head>
<body>
<div class="main_box">
    <div class="cont_box">
        <!--会员姓名电话-->
        <div class="user_top" id="123"><b>张三</b><span>18636542147</span></div><!--这里的id是用户id-->
        <!--车辆情况-->
        <div class="user_detail">
            <h2><span></span>车辆情况</h2>

            <div class="clearfix">
                <c:forEach items="${car}" var="list">
                <ul>
                    <li>
                        <label>品牌</label>
                        <span>${list.c_carname}</span>
                    </li>
                    <li>
                        <label>系列</label>
                        <span>${list.c_model}</span>
                    </li>
                    <li>
                        <label>型号</label>
                        <span>${list.c_fnumber}</span>
                    </li>
                    <li>
                        <label>发动机号</label>
                        <span>${list.c_enumber}</span>
                    </li>
                    <li>
                        <label>车牌号</label>
                        <span>${list.c_ipnumber}</span>
                    </li>
                    <li>
                        <label>车架号</label>
                        <span>${list.c_series}</span>
                    </li>
                    <li>
                        <label>行驶证</label>
                        <span>${list.c_dlicense}</span>
                    </li>
                    <li>
                        <label>年份</label>
                        <span>${list.c_year}</span>
                    </li>
                    <li>
                        <label>指导价</label>
                        <span>${list.c_price}</span>
                    </li>
                    <li>
                        <label>保险到期日</label>
                        <span>${list.c_iedate}</span>
                    </li>
                </ul>
                </c:forEach>
            </div>
        </div>
        <!--车辆情况-->
        <div class="user_detail">
            <h2><span></span>储值卡情况</h2>
            <table border="0" cellspacing="0" cellpadding="0" class="table">
                <thead>
                <tr>
                    <th>卡片ID</th>
                    <th>卡片种类</th>
                    <th>卡片余额</th>
                    <th>卡片折扣</th>
                    <th>办理店铺</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>${findchuzhi.card_id}</td>
                    <td>${findchuzhi.b_cardid_two_name}</td>
                    <td>${findchuzhi.b_cardid_two_yue}</td>
                    <td>${findchuzhi.b_cardid_two_zhekou}</td>
                    <td>${findchuzhi.dianpu}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!--年卡情况-->
        <div class="user_detail">
            <h2><span></span>年卡情况</h2>
            <table border="0" cellspacing="0" cellpadding="0" class="table">
                <thead>
                <tr>
                    <th>卡片额度</th>
                    <th>办理日期</th>
                    <th>过期日期</th>
                    <th>状态</th>
                    <th>办理店铺</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>${findnian.year_card_ed}</td>
                    <td>${findnian.year_card_starttime}</td>
                    <td>${findnian.year_card_endtime}</td>
                    <td>${findnian.year_card_zhuangtai}</td>
                    <td>${findnian.l_dianpu}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <!--大礼包情况-->
        <div class="user_detail">
            <h2><span></span>大礼包情况</h2>
            <table border="0" cellspacing="0" cellpadding="0" class="table">
                <thead>
                <tr>
                    <th>礼包名称</th>
                    <th>大礼包价格</th>
                    <th>办理日期</th>
                    <th>过期日期</th>
                    <th>办理店铺</th>
                    <th>礼包详情</th>
                </tr>
                </thead>
                <tbody>

                <tr id="1001"><!--这里的id是用户礼包id-->
                    <td>${lb.l_Gift_bag_name}</td>
                    <td>${lb.l_money}</td>
                    <td>${lb.l_startdate}</td>
                    <td>${lb.l_enddate}</td>
                    <td>${lb.l_dianpu}</td>
                    <td>
                        <a href="${pageContext.request.contextPath}/ckxq/findLb?hyid=${hyid}" class="table_btn table_info see_btn">
                            <i class="fa fa-eye"></i>
                            <span>查看</span>
                        </a>
                    </td>
                </tr>

                </tbody>
            </table>
        </div>
    </div>
</div>
<!--javascript include-->
<script src="${pageContext.request.contextPath}/admin/car/js/jquery-2.2.1.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/jquery.validate.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/car/js/other.js"></script>
<script>
    <%--$(function(){--%>
    <%--    //=====弹出窗设置--%>
    <%--    function DelTipWidth(Twidth,Theight){--%>
    <%--        $(".tipbox_top",window.parent.document).css({"width":Twidth+"px","height":Theight+"px","margin-top":-(Theight/2)+"px","margin-left":-(Twidth/2)+"px"});--%>
    <%--        $(".tiptop_close",window.parent.document).on("click",function(){--%>
    <%--            $(".tipbg_top",window.parent.document).remove(); //移除新增的背景className--%>
    <%--            $(".tipbox_top",window.parent.document).remove(); //移除新增的外层className--%>
    <%--        });--%>
    <%--    }--%>
    <%--    $(".see_btn").click(function(){--%>
    <%--         debugger;--%>
    <%--        var boxId = $(this).parents("tr").prop("id"),--%>
    <%--            userId = $("user_top").prop("id"),--%>
    <%--            tipBg = "<div class='tip_bg tipbg_top'></div>",--%>
    <%--            tipBox = "<div class='tip_box tipbox_top'></div>",--%>
    <%--            Wparent = window.parent.document;--%>
    <%--        $.ajax({--%>
    <%--            type:"get",--%>
    <%--            url:"${pageContext.request.contextPath}/ckxq/findLb",--%>
    <%--            data:{"hyid":boxId},--%>
    <%--            dataType:"json",--%>
    <%--            success:function(data){--%>
    <%--                debugger;--%>
    <%--                console.log(data);--%>
    <%--                $("body",Wparent).append(tipBg);--%>
    <%--                $("body",Wparent).append(tipBox);--%>
    <%--                $(".tipbox_top",Wparent).prepend("<h2>礼包详情<span class='tiptop_close'><i class='fa fa-close'></i></span></h2><div class='tip_tbox tiptop_box'></div>");--%>
    <%--                $(".tiptop_box",Wparent).append("<iframe src='${pageContext.request.contextPath}/admin/car/user_Package.jsp?dlb='"+data+" frameborder='0' width='100%' height='1000%' seamless></iframe>");--%>
    <%--                DelTipWidth(660,420);--%>
    <%--                var titH = $(".tipbox_top",Wparent).find("h2").outerHeight(),--%>
    <%--                    Theight = $(".tipbox_top",Wparent).height();--%>
    <%--                $(".tiptop_box",Wparent).css("height",Theight - titH);--%>
    <%--            },--%>
    <%--            error:function(errormsg){--%>
    <%--                var editFail = "<p class='del_info'>"+errormsg+"</p><div class='tip_btnbox'><button class='btn btn_dsure tiptop_close'>确认</button></div>";--%>
    <%--                $("body",Wparent).append(tipBg);--%>
    <%--                $("body",Wparent).append(tipBox);--%>
    <%--                $(".tipbox_top",Wparent).append(editFail);--%>
    <%--                DelTipWidth(400,180);--%>
    <%--            }--%>
    <%--        });--%>
    <%--    });--%>
    <%--});--%>
</script>
</body>
</html>